package com.yf.yfmovieapp.config;

import java.io.*;
import java.nio.charset.StandardCharsets;

/**
 * @Author Yang_Vincent
 * @Date 2020/8/30 13:52
 */
public class HtmlResponse {

    public static void getWriteBomFile(){

        try {

            FileOutputStream fos = new FileOutputStream("wanli-app/src/main/resources/res");
            fos.write(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF});
            fos.write(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF});
            fos.write(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF});
            OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
            BufferedWriter bw = new BufferedWriter(osw);


            bw.close();
//            br.close();
        } catch (IOException e) {
            System.out.println(e.toString());
        }
    }


}
